<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理员登录</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='admin_login.css') }}">
</head>

<body>
    <div class="admin-login-container">
        <h1>管理员登录</h1>
        {% with messages = get_flashed_messages() %}
        {% if messages %}
        <div class="alert">
            {% for message in messages %}
            {{ message }}
            {% endfor %}
        </div>
        {% endif %}
        {% endwith %}
        <form method="POST" action="{{ url_for('admin_login') }}">
            {{ form.hidden_tag() }}
            <div class="input-group">
                {{ form.username.label }}
                {{ form.username(placeholder="请输入用户名") }}
            </div>
            <div class="input-group">
                {{ form.password.label }}
                {{ form.password(placeholder="请输入密码") }}
            </div>
            <button type="submit">登录</button>
            <a href="{{ url_for('login') }}">普通用户登录</a>
        </form>
    </div>
</body>

</html>
